﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace ClientServices
{
    public class Calendar : MarshalByRefObject, IClientService
    {

        private Slot[] slots = new Slot[8761];

        public Calendar()
        {

            for (int i = 0; i < 8761; i++)
            
                slots[i] = new Slot();

            

        }

        /* Devolve estado de todos os slots */
        public String[] getSlots()
        {
            String[] ret = new String[8761];
            
            for (int i = 0; i < 8761; i++)
                
                ret[i] = slots[i].getState();
            

            return ret;
        }
    }
}
